export default {
    props: {
      goods: {},
      showAll: false,
      showMore: false,
      moreRouter: null
    },
    filters: {
      // 格式化价格
      priceFomat (price, yuan) {
        if (typeof yuan !== 'undefined') {
          return price + yuan
        } else {
          return '￥' + price
        }
      }
    },
    methods: {
      // 其他商品点击更多跳转到对应列表页
      otherGoodsList (route) {
        this.$router.push('/home/list?name=' + route)
      }
    }
  }